package com.scy.java.object;
//创建2个日期对象，分别赋值为：你的出生
//        日期，你朋友的出生日期，并显示信息。
public class MyDateDemo {
    public static void main(String[] args) {
        my();
        myGrilFriend();
    }
    //定义自己类
    public static void my(){
        MyDate myDate = new MyDate();
        myDate.name = "许涛涛";
        myDate.year = 2001;
        myDate.month = 12;
        myDate.day = 26;
        System.out.println(myDate.toString());

    }
    //定义女朋友类
    public static void myGrilFriend(){
        MyDate myDate = new MyDate();
        myDate.name = "杨丹雪";
        myDate.year = 2002;
        myDate.month = 07;
        myDate.day = 22;
        System.out.println(myDate.toString());
    }

}
